{inc:header}
<form action="admin.php" method="post" id="multctrl">
	<div class="form-group">
		<a class="btn btn-default" href="javascript:if(confirm('确认删除选中的评论？'))$track('multctrl').submit();">批量删除</a>
	</div>
	<table class="table table-bordered">
		<tr>
			<th><input type="checkbox"  onclick="VerifyRadio();"/></th>
			<th>时间</th>
			<th>留言者</th>
			<th>邮箱</th>
			<th>内容</th>
			<th >IP</th>
			<th >页面</th>
			<th>操作</th>
		</tr>
		<!-- $list AS $atl -->
		<tr onmouseover="this.style.backgroundColor='#F4F4F4'" onmouseout="this.style.backgroundColor=''">
			<td align="center"><input name="id[]" type="checkbox" id="id[]" value="{$atl['id']}" /></td>
			<td>{run:}echo date('Y-m-d H:i:s',$atl['times']);{/run}</td>
			<td><!-- if[$atl['websites']] --><a href="{$atl['websites']}" target="_blank" title="点击查看网址">{$atl['name']}</a><!-- else -->{$atl['name']}<!-- end --></td>
			<td>{$atl['emails']}</td>
			<td>{$atl['content']}</td>
			<td>{$atl['ips']}</td>
			<td><!-- listCMS:cms|id=$atl[article_id]|1||staticurl,name --> 
				<a target="_blank" href="../{$listCMS['staticurl']}">{$listCMS['name']}</a> 
				<!-- end --></td>
			<td><a href="?action=comment&id={$atl['id']}&ctrl=del" onclick="return confirm('确认删除')">删除</a></td>
		</tr>
		<!-- END -->
	</table>
	<input type="hidden" name="action" value="comment" />
	<input type="hidden" name="ctrl" value="del" />
</form>
<div class="text-center"> 
	<ul class="pagination">
		<li class="<!-- if(($page==0) || ($page==1)) -->disabled<!-- end -->"><a <!-- if(($page!=0) && ($page!=1)) -->href="?action=comment&ctrl=lists&p={$uppage}"<!-- end --> >&laquo;</a></li>
		<!-- for($i=1;$i<$pagenum;$i++) -->
		<li id="page{$i}"><a href="?action=comment&ctrl=lists&p={$i}">{$i}</a></li>
		<!-- end -->
		<li class="<!-- if($downpage==$page) -->disabled<!-- end -->"><a <!-- if($downpage!=$page) -->href="?action=comment&ctrl=lists&p={$downpage}"<!-- end -->>&raquo;</a></li>
	</ul>
	<script>
		thispage = "{$_GET['p']}";
		if(thispage == "0" || thispage == "") {thispage = "1"}
		$(function(){
			$("#page"+thispage).addClass("active");
		});
	</script>
</div>
{inc:footer}